package com.vhuomai.wechat.support;

import com.quanyue.auto.web.RequestContext;
import com.vhuomai.weixin.mp.bean.result.WxMpUser;

import javax.servlet.http.HttpServletRequest;

public interface WxAware {
    
    void onLogin(String state, WxMpUser user, RequestContext context);
    
    void onSubscribe(Integer merchantNo, WxMpUser user);
    
    String authState(HttpServletRequest request, Integer merchantNo);
    
    Integer merchantNo(String state);
    
    String redirectUrl(HttpServletRequest request);
}
